Optimal. Leaf size=57 \[ \frac{\tanh (e+f x) \sqrt{a \cosh ^2(e+f x)}}{f}-\frac{\text{sech}(e+f x) \sqrt{a \cosh ^2(e+f x)} \tan ^{-1}(\sinh (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.108551, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3176, 3207, 2592, 321, 203} \[ \frac{\tanh (e+f x) \sqrt{a \cosh ^2(e+f x)}}{f}-\frac{\text{sech}(e+f x) \sqrt{a \cosh ^2(e+f x)} \tan ^{-1}(\sinh (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2592
Rule 321
Rule 203
Rubi steps
\begin{align*} \int \sqrt{a+a \sinh ^2(e+f x)} \tanh ^2(e+f x) \, dx &=\int \sqrt{a \cosh ^2(e+f x)} \tanh ^2(e+f x) \, dx\\ &=\left (\sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \int \sinh (e+f x) \tanh (e+f x) \, dx\\ &=\frac{\left (\sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^2}{1+x^2} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=\frac{\sqrt{a \cosh ^2(e+f x)} \tanh (e+f x)}{f}-\frac{\left (\sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac{\tan ^{-1}(\sinh (e+f x)) \sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)}{f}+\frac{\sqrt{a \cosh ^2(e+f x)} \tanh (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0526466, size = 40, normalized size = 0.7 \[ \frac{\text{sech}(e+f x) \sqrt{a \cosh ^2(e+f x)} \left (\sinh (e+f x)-\tan ^{-1}(\sinh (e+f x))\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.088, size = 41, normalized size = 0.7 \begin{align*} -{\frac{a\cosh \left ( fx+e \right ) \left ( -\sinh \left ( fx+e \right ) +\arctan \left ( \sinh \left ( fx+e \right ) \right ) \right ) }{f}{\frac{1}{\sqrt{a \left ( \cosh \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.76125, size = 68, normalized size = 1.19 \begin{align*} \frac{2 \, \sqrt{a} \arctan \left (e^{\left (-f x - e\right )}\right )}{f} + \frac{\sqrt{a} e^{\left (f x + e\right )}}{2 \, f} - \frac{\sqrt{a} e^{\left (-f x - e\right )}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.97095, size = 497, normalized size = 8.72 \begin{align*} \frac{{\left (2 \, \cosh \left (f x + e\right ) e^{\left (f x + e\right )} \sinh \left (f x + e\right ) + e^{\left (f x + e\right )} \sinh \left (f x + e\right )^{2} - 4 \,{\left (\cosh \left (f x + e\right ) e^{\left (f x + e\right )} + e^{\left (f x + e\right )} \sinh \left (f x + e\right )\right )} \arctan \left (\cosh \left (f x + e\right ) + \sinh \left (f x + e\right )\right ) +{\left (\cosh \left (f x + e\right )^{2} - 1\right )} e^{\left (f x + e\right )}\right )} \sqrt{a e^{\left (4 \, f x + 4 \, e\right )} + 2 \, a e^{\left (2 \, f x + 2 \, e\right )} + a} e^{\left (-f x - e\right )}}{2 \,{\left (f \cosh \left (f x + e\right ) e^{\left (2 \, f x + 2 \, e\right )} + f \cosh \left (f x + e\right ) +{\left (f e^{\left (2 \, f x + 2 \, e\right )} + f\right )} \sinh \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )} \tanh ^{2}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26655, size = 51, normalized size = 0.89 \begin{align*} -\frac{\sqrt{a}{\left (4 \, \arctan \left (e^{\left (f x + e\right )}\right ) - e^{\left (f x + e\right )} + e^{\left (-f x - e\right )}\right )}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]